import type { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  appId: 'com.observatory.baapp',
  appName: 'baApp',
  webDir: 'dist',
  ios: {
    scheme: 'baApp',
  },
  server: {
    androidScheme: "https",
},
  plugins: {
    JPush: {
      appKey: "c800318fb188029905100a32", 
      channel: "developer-default",
      production: false, 
    },
  //   FirebaseMessaging: {
  //     presentationOptions: ["badge", "sound", "alert"]
  // },
    PwaElements: {
      pushNotifications: true
    },
    PushNotifications: {
      presentationOptions: ["badge", "sound", "alert"],
      notificationTypes: {
        alert: true,
        badge: true,
        sound: true
      }
    },
    LocalNotifications: {
      smallIcon: "ic_stat_icon_config_sample",
      iconColor: "#488AFF",
      sound: "beep.wav",
    },
    BackgroundRunner: {
      label:"com.observatory.baapp",
      src: "background.js",
      event: "background-alert",
      repeat: true,
      interval: 60,
      autoStart: true,    
    },
  },
  
};


export default config;
